﻿<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8">
          <title></title>
     </head>
     <body>
        <textarea rows="10" cols="60" id="code">
        </textarea>
     </body>
</html>
<script type="text/javascript">
	var count = 0;
    window.setTimeout(function(){
		console.log(++count);
		document.getElementById("code").value = "你好";
	},3000);
	
	
	var count2 = 0;
	var timer = window.setInterval(function(){
		console.log("count2:" + ++count2);
	},3000);
	
	window.setInterval(function(){
		console.log(Math.random());
	},3000);	
	
	window.setInterval(function(){
		console.log("===="+Math.random());
	},3000);
	
	window.clearInterval(timer);
</script>
